<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>New User</title>
</head>
<body>
New User
<br/><br/>
<form:form method="post" action="${ctx}/users/new" commandName="user">
<table>
  <tr>
    <th>login: </th>
    <td><form:input path="login" /><br/><form:errors path="login" cssStyle="color:red" /></td>
  </tr>
  <tr>
    <th>first name: </th>
    <td><form:input path="firstname" /><br/><form:errors path="firstname" cssStyle="color:red" /></td>
  </tr>
  <tr>
    <th>last name: </th>
    <td><form:input path="lastname"/><br/><form:errors path="lastname" cssStyle="color:red" /></td>
  </tr>
  <tr>
  	<th>email: </th>
  	<td><form:input path="mail"/><br/><form:errors path="mail" cssStyle="color:red" /></td>
  </tr>
  <tr>
  	<th>password: </th>
  	<td><form:password path="pswd"/><br/><form:errors path="pswd" cssStyle="color:red" /></td>
  </tr>
  <tr>
  	<th>confirm: </th>
  	<td><form:password path="pswdConfirm"/><br/><form:errors path="pswdConfirm" cssStyle="color:red" /></td>
  </tr>
</table>
<form:hidden path="id"/>
<input type="submit" />
</form:form>
</body>
</html>